#include "User.h"

void User::set_user(QVector<QString>* values)
{
    this->id = (*values)[0].toInt();
    this->name = (*values)[1];
    this->passwd = (*values)[2];
    this->create_time = (*values)[3];
    this->authority = (*values)[4].toInt();
}

int User::get_id()
{
    return id;
}

QString User::get_name()
{
    return name;
}

QString User::get_passwd()
{
    return passwd;
}

QString User::get_create_time()
{
    return create_time;
}

int User::get_authority()
{
    return authority;
}

int User::attr_count()
{
    return ATTR_COUNT;
}
